﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Default/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Fashion.ViewModels.OrderDetailModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditOrder
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>EditOrder</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Order No <%: Model.orderDetails.OrderID %></legend>

            <div class="editor-field">
                <%: Html.HiddenFor(model => model.orderDetails.OrderID)%>
            </div>

            <div class="editor-field">
                <%: Html.LabelFor(model => model.orderDetails.Product) %>
                <%: Html.TextBoxFor(model => model.productName, new { @readonly="true", style="width:300px" })%>
            </div>

            <div class="editor-field">
                <%: Html.LabelFor(model => model.orderDetails.Color) %>
                <%: Html.TextBoxFor(model => model.color, new {@readonly="true", style="width:300px" })%>
            </div>

            <div class="editor-field">
                <%: Html.LabelFor(model => model.orderDetails.Size) %>
                <%: Html.TextBoxFor(model => model.size, new {@readonly="true", style="width:300px" })%>
            </div>

            <div class="editor-field">
                <%: Html.LabelFor(model => model.orderDetails.Quantity) %>
                <%: Html.TextBoxFor(model => model.orderDetails.Quantity, new {style="width:300px" })%>
            </div>

            <div class="editor-field">
                <%: Html.LabelFor(model => model.orderDetails.Price) %>
                <%: Html.TextBoxFor(model => model.orderDetails.Price, new {style="width:300px" })%>
            </div>

            <div class="editor-field">
                <%: Html.LabelFor(model => model.TotalPrice) %>
                <%: Html.TextBoxFor(model => model.TotalPrice, new {style="width:300px" })%>
                <%: Html.ValidationMessageFor( model => model.TotalPrice, "Total price is invalid") %>
            </div>

            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Submenu" runat="server">
</asp:Content>

